/*
 * Copyright 2011 CyberSMS.ru
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package ru.cybersms.model.response;

import java.math.BigDecimal;
import java.util.List;

/**
 *
 * @author Андрей Шерцингер <support@cybersms.ru>
 */
public class HistoryResponse extends Response {

	private List<HistoryItem> history;

	public List<HistoryItem> getHistory() {
		return history;
	}

	public void setHistory(List<HistoryItem> history) {
		this.history = history;
	}

	public class HistoryItem {

		private int id;
		private String recipient;
		private String sender;
		private String message;
		private int parts;
		private BigDecimal price;
		private String status;
		private Integer bulk_id;
		private String created_at;

		public int getId() {
			return id;
		}

		public void setId(int id) {
			this.id = id;
		}

		public String getRecipient() {
			return recipient;
		}

		public void setRecipient(String recipient) {
			this.recipient = recipient;
		}

		public String getSender() {
			return sender;
		}

		public void setSender(String sender) {
			this.sender = sender;
		}

		public String getMessage() {
			return message;
		}

		public void setMessage(String message) {
			this.message = message;
		}

		public int getParts() {
			return parts;
		}

		public void setParts(int parts) {
			this.parts = parts;
		}

		public BigDecimal getPrice() {
			return price;
		}

		public void setPrice(BigDecimal price) {
			this.price = price;
		}

		public String getStatus() {
			return status;
		}

		public void setStatus(String status) {
			this.status = status;
		}

		public Integer getBulk_id() {
			return bulk_id;
		}

		public void setBulk_id(Integer bulk_id) {
			this.bulk_id = bulk_id;
		}

		public String getCreated_at() {
			return created_at;
		}

		public void setCreated_at(String created_at) {
			this.created_at = created_at;
		}

		@Override
		public String toString() {
			return "HistoryItem{" + "id=" + id + ", recipient=" + recipient + ", sender=" + sender + ", message=" + message + ", parts=" + parts + ", price=" + price + ", status=" + status + ", bulk_id=" + bulk_id + ", created_at=" + created_at + '}';
		}
	}
}
